import { createRouter, createWebHistory } from 'vue-router'
import home from '@/views/home/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: home
    },
    {
      path: '/v1',
      name: 'v1',
      component: () => import('@/views/v1/index.vue')
    },
    {
      path: '/v2',
      name: 'v2',
      component: () => import('@/views/v2/index.vue')
    },
    {
      path: '/v3',
      name: 'v3',
      component: () => import('@/views/v3/index.vue')
    }
  ]
})

export default router
